<template>
  <div class="lqks">
    <div class="head">
      <span>录取考生信息查询</span>
    </div>

    <el-table v-loading="loading" :data="tableData" height="720" border style="width: 100%">
      <!-- <el-table-column type="index" label="序号" width="400"></el-table-column> -->
      <el-table-column prop="sfdm" label="省份" width="80"> </el-table-column>
      <el-table-column prop="ksh" label="考生号" width="160">
      </el-table-column>
      <el-table-column prop="zkzh" label="准考证号" width="140"> </el-table-column>
      <el-table-column prop="xm" label="姓名" width="80">
      </el-table-column>
      <el-table-column prop="xbdm" label="性别" width="80">
      </el-table-column>
      <el-table-column prop="csny" label="出生年月" width="100">
      </el-table-column>
      <el-table-column prop="mzdm" label="名族" width="80">
      </el-table-column>
      <el-table-column prop="tdcj" label="投档成绩" width="80">
      </el-table-column>
      <el-table-column prop="lqzy" label="录取专业" width="160">
      </el-table-column>
      <el-table-column prop="kslbdm" label="考生类别" width="80">
      </el-table-column>
      <el-table-column prop="bylbdm" label="毕业类别" width="80">
      </el-table-column>
      <el-table-column prop="zxmc" label="中学名称" width="180">
      </el-table-column>
      <el-table-column prop="jtdz" label="家庭住址"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { request } from '../../network/request'
export default {
  name: '',
  data() {
    return {
      tableData: [],
      loading: true
    }
  },
  methods: {},
  created() {
    request({
      url: 'http://118.31.51.131:8081/api/zsxt/lqgl/ksxx/ckKsxx',
      method: 'post',
      params: {
        token: sessionStorage.getItem('token')
      }
    }).then(value => {
      console.log(value);
      this.loading = false
      this.tableData = value.data
    })
  },
  beforeCreate() {
    if (sessionStorage.getItem("token") == null) {
      this.$router.push("/login");
    } else {
      let token = sessionStorage.getItem("token");
      let length = sessionStorage.getItem("token").length;
      if (token[length - 4] == "0") {
        this.$router.replace("/login");
      }
    }
  },
  components: {}
}
</script>

<style scoped>
.head {
  height: 80px;
  border-bottom: 1px solid black;
}
.head span {
  font-size: 20px;
  line-height: 80px;
  margin-left: 25px;
}
.lqks ::v-deep .el-table .cell {
  text-align: center;
}
</style>